package exception;

public class TryCatchFinallyDemo02 {
    public static void main(String[] args) {
        int a=10;
        int b=0;
        int c=-1;
        try {
            c=a/b;
            System.out.println(c);

        }catch(Exception e){
            System.out.println("错误");
            c++;
        }finally {
            c++;
        }
    }

}
